#!/bin/bash
echo "手动启动MES服务..."

cd /home/ubuntu/zlymes/mesmaster

# 激活conda环境
export PATH="/home/ubuntu/miniconda3/bin:$PATH"
source ~/miniconda3/etc/profile.d/conda.sh
conda activate mes

echo "检查Django版本..."
python -c "import django; print('Django version:', django.VERSION)"

echo "检查设置文件..."
python manage.py check --settings=settings_mes_basic

echo "启动基础MES服务..."
python manage.py runserver 0.0.0.0:8004 --settings=settings_mes_basic 